package p1000;

import java.util.Scanner;

public class Main1108最小公倍数 {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextInt()) {
            int a = scanner.nextInt();
            int b = scanner.nextInt();

            if (a > b) {
                int x = a;
                a = b;
                b = x;
            }

            int result = 0;
            boolean flag = false;
            for (int i = 1; i < b; i++) {
                result = a * i;
                if (result % b == 0) {
                    flag = true;
                    break;
                }
            }

            if (!flag) {
                result = a * b;
            }

            System.out.println(result);
        }
    }
}
